﻿<UserControl
    xmlns:c="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
    x:Class="NavControl.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:l="clr-namespace:Nav;assembly=Nav"
    xmlns:themes="clr-namespace:System.Windows.Controls.Theming;assembly=System.Windows.Controls.Theming.Toolkit"
    mc:Ignorable="d"
    d:DesignWidth="640"
    d:DesignHeight="480">

    <Grid
        VerticalAlignment="Stretch"
        HorizontalAlignment="Stretch"
        x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition
                Width="150" />
            <ColumnDefinition
                Width="10" />
            <ColumnDefinition
                Width="*" />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition
                Height="500" />
            <RowDefinition
                Height="10" />
            <RowDefinition
                Height="*" />
        </Grid.RowDefinitions>

        <l:NavigationMenu
            x:Name="menu"
            Grid.Column="0"
            DataUrl="/Nav/Data.xml"
            Orientation="Horizontal"
            VerticalAlignment="Stretch"
            HorizontalAlignment="Stretch">

        </l:NavigationMenu>

        <c:GridSplitter
            Grid.Row="0"
            Grid.Column="1"
            Grid.RowSpan="3"
            VerticalAlignment="Stretch"
            HorizontalAlignment="Center"
            Background="Blue"
            Width="5"></c:GridSplitter>

        <c:GridSplitter
            Grid.Row="1"
            Grid.Column="0"
            Grid.ColumnSpan="3"
            VerticalAlignment="Center"
            HorizontalAlignment="Stretch"
            Background="Red"
            Height="5"></c:GridSplitter>

        <Button
            x:Name="button"
            Margin="10,10,10,10"
            VerticalAlignment="Top"
            Width="100"
            Click="Button_Click"    
            Content="Change Color"
            Grid.Row="2" />

    </Grid> 
</UserControl>
